package com.information.manage.MaintenanceRecord.service.impl;

import com.information.manage.MaintenanceRecord.mapper.MaoDuanMapper;
import com.information.manage.MaintenanceRecord.pojo.MaoDuan;
import com.information.manage.MaintenanceRecord.service.MaoDuanService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class MaoDuanServiceImpl implements MaoDuanService {
    @Autowired
    private MaoDuanMapper maoDuanMapper;

    @Override
    public List<MaoDuan> selectAll() {
        return maoDuanMapper.selectAll();
    }

    @Override
    public void addMaintMaoDuan(MaoDuan maoDuan) {
        maoDuanMapper.insert(maoDuan);
    }

    @Override
    public void updateMaintMaoDuan(MaoDuan maoDuan) {
        maoDuanMapper.update(maoDuan);
    }

    @Override
    public void deleteMaintMaoDuan(Integer mdid) {
        maoDuanMapper.delete(mdid);
    }

    @Override
    public void logicDeleteMaintMaoDuan(Integer mdid) {
        maoDuanMapper.logicDelete(mdid);
    }
}